//
//  XiangguanTableViewCell.m
//  A_HandHeldLOL
//
//  Created by Zhao YanBin on 16/1/20.
//  Copyright © 2016年 zhaoyanbin. All rights reserved.
//

#import "XiangguanTableViewCell.h"

@implementation XiangguanTableViewCell

-(void)dealloc
{
    [_title release];
    [_neirong release];
    [_img release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc] init];
        _title.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_title];
        
        self.neirong = [[UILabel alloc] init];
        _neirong.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_neirong];
        
        self.img = [[UIImageView alloc] init];
        _img.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:_img];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.img.frame = CGRectMake(10, 10, 80, 80);
    self.title.frame = CGRectMake(100, 0, 250, 50);
    self.neirong.frame = CGRectMake(100, 50, 250, 50);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
